<?php

require_once ROOT_PATH.'/Abstracts/front.php';

class Action extends front_abs
{
    function index()
    {

	    $type = _GET('type' ,0);
	    if($type == 1){
	   	$info = _M('gywm')->getList();
		
	    }
	    if($type == 2){
	   	$info = _M('cpzs')->getList();
		
	    }
	    if($type == 3){
	   	$info = _M('cgal')->getList();
		
	    }
	    if($type == 4){
	   	$info = _M('zzry')->getList();
		
	    }
		
	    $array = array();
	    foreach($info as $val){
	    
		    $array[$val['id']] = $val['内容'];
		    $array[$val['id'].'t'] = $val['标题'];

	    }
	    
	 	
	    
	    Smarty3::instance()->assign('info', $info);
	    Smarty3::instance()->assign('array', $array);
	    Smarty3::instance()->display('list2.html');

    }

    function aaa(){
    
    Smarty3::instance()->display('list2.html');
    }

}

?>
